let mongoose=require('mongoose');

mongoose.connect('mongodb://root:root@47.93.86.246:27017/answer?authSource=admin')

let conn=mongoose.connection;
conn.on('open',()=>{
    console.log('连接成功');
})
conn.on('error',err=>{
    console.log(err);
})

module.exports=mongoose;
